public class demo2 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> System.out.println("正在运行 run 方法"));
        thread.start();

        while (true){
            System.out.println("正在运行 main 方法");
        }
    }
}

